package com.cy.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;


//实体类基类
//实现序列化+反序列化接口
@MappedSuperclass      //表明父类
@Data
public abstract class BaseEntity implements Serializable{
        @Column
        private String createdUser;
        @Column
        private Date createdTime;
        @Column
        private String modifiedUser;
        @Column
        private Date modifiedTime;
}
